home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- isNegative = 0;
- _width = random(50) + 77;
- myColor = new Color(this);
- if(this == _root.ceiling)
- {
- _root.orig1 = myColor.getTransform();
- }
- if(_root.negativeColor == 0)
- {
- myColor.setTransform(_root.orig1);
- isNegative = 0;
- }
- if(_root.negativeColor == 1)
- {
- myColor.negative();
- isNegative = 1;
- }
- this.dupeOnce = 1;
- dropSpike = random(_root.spikeChances);
- if(dropSpike == 0 && this != _root.ceiling)
- {
- _root.spike.duplicateMovieClip("spike" + _root.spikeCount,_root.i + 5000);
- _root["spike" + _root.spikeCount]._y = this._y;
- _root["spike" + _root.spikeCount]._x = this._x;
- _root["spike" + _root.spikeCount]._rotation = 180;
- _root["spike" + _root.spikeCount]._height = random(_root.spikeHeightAdd) + _root.spikeHeightMin;
- _root.spikeCount = _root.spikeCount + 1;
- _root.i = _root.i + 1;
- }
- }
-